<?php
class Headers {

	final static function printJSON($json){
		header("HTTP/1.1 200 OK");
		header('Cache-Control: no-cache, must-revalidate');
		header('Content-type: application/json');
		print $json;
	}

	final static function printBadJSON($json){
		header("HTTP/1.1 400 Bad Request");
		header('Cache-Control: no-cache, must-revalidate');
		header('Content-type: application/json');
		print $json;
	}
}